# https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ${ingressName}
  namespace: ${namespace}
  annotations:
    kubesphere.io/description: ${kubesphereDescription}
#    nginx.ingress.kubernetes.io/rewrite-target: /$2
    ${nginxRewrite}
spec:
  rules:
  - host: ${domain}
    http:
      paths:
      - path: ${path}
        pathType: Prefix
        backend:
          service:
            name: ${svcName}
            port:
              number: 3001